package org.jeecg.modules.power.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 电源开关
 * @Author: jeecg-boot
 * @Date:   2024-03-25
 * @Version: V1.0
 */
@Data
@TableName("power_switch")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="power_switch对象", description="电源开关")
public class PowerSwitch {
    
	/**id*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id")
	private java.lang.String id;
	/**设备名称*/
	@Excel(name = "设备名称", width = 15)
    @ApiModelProperty(value = "设备名称")
	private java.lang.String name;
	/**点点控设备id*/
	@Excel(name = "点点控设备id", width = 15)
    @ApiModelProperty(value = "点点控设备id")
	private java.lang.String ddkid;
	/**在线状态*/
	@Excel(name = "在线状态", width = 15)
    @ApiModelProperty(value = "在线状态")
	private java.lang.String status;
	/**开关*/
	@Excel(name = "开关", width = 15)
    @ApiModelProperty(value = "开关")
	private java.lang.String onoff;
	/**公司id*/
	@Excel(name = "公司id", width = 15)
	@Dict(dicCode="id",dictTable="sys_depart",dicText="depart_name")
    @ApiModelProperty(value = "公司id")
	private java.lang.String cid;
	/**删除标识*/
	@Excel(name = "删除标识", width = 15)
	@TableLogic
    @ApiModelProperty(value = "删除标识")
	private java.lang.String delFlag;
	/**createBy*/
	@Excel(name = "createBy", width = 15)
    @ApiModelProperty(value = "createBy")
	private java.lang.String createBy;
	/**createTime*/
	@Excel(name = "createTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "createTime")
	private java.util.Date createTime;

	@ApiModelProperty(value = "车间名称")
	private java.lang.String cjname;

	@ApiModelProperty(value = "公司名称")
	@TableField(exist = false)
	private java.lang.String cname;
}
